package com.xinzhidi.web.equipmentAlarm.domain.dto;

import com.xinzhidi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


/**
 * 设备告警UpdDto对象 equipment_alarm
 *
 * @author ruoyi
 * @date 2023-05-31
 */
@ApiModel(value = "设备告警UpdDto对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class EquipmentAlarmUpdDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备告警id")
    @NotNull(message = "设备告警id不能为空")
    @Min(value = 0, message = "设备告警id不能比0小")
    private Long id;

    @ApiModelProperty(value = "小区id")
    @NotNull(message = "小区id不能为空")
    @Min(value = 0, message = "小区id不能比0小")
    private Long plotId;

    @ApiModelProperty(value = "楼栋id")
    @Min(value = 0, message = "楼栋id不能比0小")
    private Long buildId;

    @ApiModelProperty(value = "单元id")
    @Min(value = 0, message = "单元id不能比0小")
    private Long unitId;

    @ApiModelProperty(value = "住户id")
    @Min(value = 0, message = "住户id不能比0小")
    private Long householdId;

    @ApiModelProperty(value = "设备id")
    @NotNull(message = "设备id不能为空")
    @Min(value = 0, message = "设备id不能比0小")
    private Long equipmentId;

    @ApiModelProperty(value = "告警设置id")
    @NotNull(message = "告警设置id不能为空")
    @Min(value = 0, message = "告警设置id不能比0小")
    private Long alarmSettingId;

    @ApiModelProperty(value = "处理备注")
    @NotEmpty(message = "处理备注不能为空")
    private String handleRemark;

    @ApiModelProperty(value = "状态（0：未处理  1：已处理 ）")
    @Excel(name = "状态", readConverterExp = "0=：未处理,1=：已处理")
    private String status;

    @ApiModelProperty(value = "是否推送（0：推送  1：不推送  默认0）")
    private Integer hideOrPush;

    @ApiModelProperty(value = "告警推送间隔")
    private Integer pushNum;
}
